package com.dick.base.parameter;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class InspectionProgramParameter {
    private Long id;

    @Size(max = 128, message = "标题长度不能超过128")
    @NotEmpty(message = "标题不能为空")
    private String title;

    @NotNull(message = "请选择巡视计划")
    private Long planId;

    @NotNull(message = "请选择巡视组")
    private Integer teamId;

    @Size(max = 512, message = "摘要长度不能超过512")
    private String summary;

    @Size(max = 128, message = "文件名长度不能超过128")
    @NotEmpty(message = "请上传文件")
    private String fileName;

    @NotNull(message = "请上传文件")
    private Long fileId;
}
